home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Assistant
/
Business Assistant.iso
/
acctg
/
dbbills
/
help.prg
< prev
next >
Wrap
Text File
|
1986-11-11
|
2KB
|
80 lines
*--[ help.prg ]-- for use by clipper only!
PARAMETERS call_prg,line_num,input_var
SAVE SCREEN
@ 0,0 CLEAR
DO CASE
CASE input_var="M_CLIENT" .OR. input_var="END_CLT"
SELECT clt
IF m_client>0
SEEK TRIM(STR(m_client,3,0))
ELSE
GO TOP
ENDIF m_client>0
SET COLOR TO W+
@ 1,33 SAY "CLIENT LISTING"
SET COLOR TO W
? " ========================================"
? " CODE CLIENT NAME"
? " ---- ----------------------------------"
h_line=5
DO WHILE .NOT. EOF()
? " "+STR(c_code,3,0)+" "
?? c_name
h_line=h_line+1
SKIP
IF h_line > 20
WAIT " PRESS RETURN TO CONTINUE OR <Q> TO END LISTING" TO action
IF UPPER(action)="Q"
EXIT
ENDIF UPPER(action)+"Q"
h_line=5
@ h_line,0 CLEAR
ENDIF h_line>20
ENDDO WHILE .NOT. EOF()
SET COLOR TO W*+
WAIT " PRESS RETURN AFTER READING LIST"
SET COLOR TO W
CASE input_var="MC_NAME"
SELECT clt
IF LEN(TRIM(mc_name))>0
SEEK TRIM(mc_name)
IF .NOT. FOUND()
@ 12,15 SAY "CAN'T FIND "+TRIM(mc_name)
?
WAIT " PRESS RETURN"
RESTORE SCREEN
RETURN
ENDIF
ELSE
GO TOP
ENDIF m_client>0
SET COLOR TO W+
@ 1,33 SAY "CLIENT LISTING"
SET COLOR TO W
? " ========================================"
? " CODE CLIENT NAME"
? " ---- ----------------------------------"
h_line=5
DO WHILE .NOT. EOF()
? " "+STR(clt->c_code,3,0)+" "
?? clt->c_name
h_line=h_line+1
SKIP
IF h_line > 20
WAIT " PRESS RETURN TO CONTINUE OR <Q> TO END LISTING" TO action
IF UPPER(action)="Q"
EXIT
ENDIF UPPER(action)+"Q"
h_line=5
@ h_line,0 CLEAR
ENDIF h_line>20
ENDDO WHILE .NOT. EOF()
SET COLOR TO W*+
WAIT " PRESS RETURN AFTER READING LIST"
SET COLOR TO W
ENDCASE
RESTORE SCREEN
RETURN